<div class="ui-g-12 p-20">
  <p-panel headerClass="bg-none" marginHeight="80"  [showScroll]="true" >
    <p-header>
      <div class="text-right p-6-0">
        <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">模板信息</span>
        <button pButton type="button" (click)="edit()" label="编辑" class="btn-secondary"></button>
      </div>
    </p-header>

    <div class="table-row">
      <div class="table-cell width-150 opacity06 text-right p-l-25">
        编号：
      </div>
      <div class="table-cell">
        {{templateObj.code}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        标题：
      </div>
      <div class="table-cell">
        {{templateObj.title}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        通知类型：
      </div>
      <div class="table-cell">
        {{storage.dicFilter('advicetype',templateObj.adviceType)}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150 opacity06 text-right p-l-25">
        消息类型：
      </div>
      <div class="table-cell">
          <div *ngIf="templateObj.adviceType === 'advicetype_180309000011'">
            {{storage.dicFilter('msgtype_order',templateObj.msgType)}}
          </div>
          <div *ngIf="templateObj.adviceType === 'advicetype_180309000012'">
            {{storage.dicFilter('msgtype_sys',templateObj.msgType)}}
          </div>
          <div *ngIf="templateObj.adviceType === 'advicetype_180309000013'">
            {{storage.dicFilter('msgtype_engineering',templateObj.msgType)}}
          </div>
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        触发事件：
      </div>
      <div class="table-cell">
        {{templateObj.triggerEvent}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        通知内容：
      </div>
      <div class="table-cell">
        {{templateObj.content}}
      </div>
    </div>
  </p-panel>

</div>
